//
//  ZBBaseSubViewController.m
//  DevDemo
//
//  Created by BO ZHOU on 2021/5/6.
//

#import "ZBBaseSubViewController.h"

@interface ZBBaseSubViewController ()

@end

@implementation ZBBaseSubViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIButton* button = [UIButton new];
    
    [button addTarget:self action:@selector(dismissButtonClick) forControlEvents:UIControlEventTouchUpInside];
    
    [button setTitle:@"返回" forState:UIControlStateNormal];
    [button setTitleColor:[[UIColor grayColor] colorWithAlphaComponent:1] forState:UIControlStateNormal];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:button];
}

-(void)dismissButtonClick {
    [self.navigationController dismissViewControllerAnimated:true completion:nil];
}



@end
